<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- <script src="" async="async"></script> -->
    <!-- <script>
        document.addEventListener('DOMContentLoaded',function(){
            var div = document.getElementsByTagName('div')[0];
            console.log("abcd\"\\ef");
        },false)
    </script> -->
</head>
<body>
    <!-- <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
    </ul> -->
    <div style="width:100px;height:100px;background-color:green;">
        <div style="width:50px;height:50px;background-color:red;"></div>
    </div>
    <script>
        // var lis = document.getElementsByTagName('li');
        // var arr = [];
        //     for(var i = 0; i < lis.length; i ++){
        //         (function(i){
        //             arr[i] = function (){
        //                 console.log(i);
        //             }                   
        //             lis[i].addEventListener ('click',arr[i],false);
        //         }(i))
        //     }
        // lis[0].removeEventListener('click',arr[0],false);

        // document.oncontextmenu = function(e){
        //    //鼠标文档右击弹出菜单栏事件
        // }
        // var dom = document.getElementsByTagName('div')[0];
        // dom.onclick = function(e){
        //     console.log(e);
        // }
        
    </script>
</body>
</html>